package com.dituhui.web.basket;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.log4j.Logger;

/**
 * 篮球场网关
 * 
 * @author liweigu
 *
 */
public class BasketGateway extends HttpServlet {
	private static final Logger LOGGER = Logger.getLogger(BasketGateway.class);

	public void init() throws ServletException {
		// LOGGER.info("redisUrl=" + redisUrl);
	}

	// http://gps.dituhui.com/wxweb/uploadGPSPos?a=test&cmd=list&type=basket
	public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		request.setCharacterEncoding("UTF-8");
		String accountId = request.getParameter("a");
		String command = request.getParameter("cmd");
		String type = request.getParameter("type");
		response.setCharacterEncoding("UTF-8");
		PrintWriter out = response.getWriter();

		out.flush();
		out.close();
	}
}
